﻿<%@ Page Language="C#" MasterPageFile="~/QuanTri/Manager.master" AutoEventWireup="true"
    CodeFile="TrangQuanLyHocSinh.aspx.cs" Inherits="QuanTri_QuanLyHocSinh" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head1" runat="Server">
    <link href="../CSS/FixItem.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphBody" runat="Server">
    <div style="width: 100%; height: auto;">
        <div id="main_panel" style="width: 100%;">
            <div id="personal_content" style="padding: 10px; border: 1px solid #ccc">
                <div class="personal_top_text">
                    Quản lý thông tin học sinh
                </div>
                 <div class="personal_style_form">
                    <span class="personal_laber">Năm học </span>
                    <asp:DropDownList ID="ddlNamHoc" runat="server" Width="120px">
                    </asp:DropDownList>
                    
                </div>
                <div class="personal_style_form">
                    <span class="personal_laber">Chọn khối </span>
                    <asp:DropDownList ID="drpKhoiHoc" runat="server" Width="120px">
                    </asp:DropDownList>
                </div>
                <div class="personal_style_form">
                    <span class="personal_laber">Chọn lớp </span>
                    <asp:DropDownList ID="drpLopHoc" runat="server" Width="120px">
                    </asp:DropDownList>&nbsp;&nbsp;&nbsp
                    <span>Sĩ số</span>&nbsp;&nbsp;&nbsp
                    <asp:Label runat="server" ID="lblSiSo" Width="120px"></asp:Label>
                </div>
                <div class="personal_style_form">
                    <span class="personal_laber">Chọn file excel </span>
                    <asp:FileUpload runat="server" ID="fuExcel" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Button runat="server" ID="btnNhapExcel" Text="Nhập từ excel" Height="25px" Width="120px" />;&nbsp;&nbsp;&nbsp;
                    <asp:LinkButton runat="server" ID="lbkExcel" Text="Tải file mẫu excel"></asp:LinkButton>
                </div>
                <div>
                    <asp:GridView ID="grvNhapDiem" runat="server" AutoGenerateColumns="False" Width="100%"
                        AllowPaging="True" Height="28px" ShowFooter="True">
                        <RowStyle BackColor="#EFF3FB" />
                        <Columns>
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <asp:CheckBox ID="ckCheck" runat="server" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="STT">
                                <ItemTemplate>
                                    <%# Container.DataItemIndex + 1 %>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Mã học sinh" SortExpression="MaHS">
                                <ItemTemplate>
                                    <asp:Label ID="lblMaHS" runat="server" Text='<%#Bind("MaHS") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Tên học sinh" SortExpression="TenHS">
                                <ItemTemplate>
                                    <asp:Label runat="server" ID="lblTenHS" Text='<%#Bind("MaHS") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Ngày sinh" SortExpression="NgaySinh">
                                <ItemTemplate>
                                    <asp:Label runat="server" ID="lblNgaySinh" Text='<%#Bind("NgaySinh") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Giới tính" SortExpression="GioiTinh">
                                <ItemTemplate>
                                    <asp:DropDownList runat="server" ID="ddlGioiTinh"  Width="70px">
                                    <asp:ListItem Text="Nam" Value="Nam"></asp:ListItem>
                                    <asp:ListItem Text="Nữ" Value="Nu"></asp:ListItem>
                                    </asp:DropDownList>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Địa chỉ" SortExpression="SDT">
                                <ItemTemplate>
                                    <asp:Label runat="server" ID="lblSDT" Text='<%#Bind("SDT") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Số ĐT" SortExpression="Email">
                                <ItemTemplate>
                                    <asp:Label runat="server" ID="lblEmail" Text='<%#Bind("Email") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:CommandField ShowDeleteButton="true" DeleteText="Xóa" ControlStyle-Font-Underline="true"
                                ControlStyle-ForeColor="Blue" />
                        </Columns>
                        <PagerStyle BackColor="#E4ECEF" HorizontalAlign="Center" />
                        <HeaderStyle BackColor="#E4ECEF" Font-Bold="True" BorderColor="Blue" Height="30px" />
                    </asp:GridView>
                </div>
                <div style="padding-left: 210px; padding-top: 10px;">
                    <asp:Button runat="server" ID="btnUpdate" CssClass="button_150" 
                        Text="Thêm một học sinh" onclick="btnUpdate_Click" />&nbsp;&nbsp;
                    <asp:Button runat="server" ID="btnDelete" CssClass="button_150" Text="Sửa" />&nbsp;&nbsp;
                    <asp:Button runat="server" ID="Button1" CssClass="button_150" Text="Xóa" />
                </div>
                </div>
                
            </div>
        </div>
</asp:Content>
